using System;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
using System.Collections.Generic;
using System.Collections;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using SumGam.Globals;
using SumGam.Structs;
using SumGam.Classes;

namespace SumGam
{
    public class GameState : BaseState
    {
        public Scene CurrentScene;
        public GameState()
        {
            CurrentScene = new Scene();
        }
        public override void Draw()
        {
            float FPS = 1.0f / (float)Misc.Time.ElapsedGameTime.TotalSeconds;
            Rendering.spriteBatch.Begin();
            Rendering.spriteBatch.DrawString(Fonts.DialogFont, "FPS: " + FPS.ToString(), new Vector2(0, 0), Color.White);
            CurrentScene.Draw();
            Rendering.spriteBatch.End();
        }
        public override void Update()
        {
            CurrentScene.Update();
        }
    }
}